\documentclass[9pt,xcolor=dvipsnames]{beamer}
\usecolortheme[named=Black]{structure}
\usetheme{CambridgeUS}

\usepackage[portuguese]{babel}
\usepackage[utf8]{inputenc}
\usepackage{ifthen}
\usepackage{subfigure}
\usepackage{colortbl}

% Document Properties
\title{JDBC (Java DB Connectivity) Concorrente}
\author{Wilson Santos}
\institute{IT - Universidade de Aveiro}
\date{\today}

\begin{document}

% Define language: 'pt' for Portuguese or 'en' for English.
%\def \lang{en}
\newcommand{\pauseenabled}{true}
\newcommand{\mypause} {
  \ifthenelse{\equal{\pauseenabled}{false}}{\pause}{}
}
% Insert new frame using the chosen language.
\newcommand{\newframe}[3] {
  \begin{frame}
  \clang{\frametitle{#1}}{\frametitle{#2}}
  \input{sections/#3.tex}
  \end{frame}
}
\newcommand{\newsection}[3] {
  \clang{\section{#2}}{\section{#3}}
  \input{sections/#1.tex}
}
\newcommand{\newsubsection}[3] {
  \clang{\subsection{#1}}{\subsection{#2}}
  \begin{frame}
  \clang{\frametitle{#1}}{\frametitle{#2}}
  \input{sections/#3.tex}
  \end{frame}
}
\newcommand{\newsubsubsection}[3] {
  \clang{\subsubsection{#1}}{\subsubsection{#2}}
  \begin{frame}
  \clang{\frametitle{#1}}{\frametitle{#2}}
  \input{sections/#3.tex}
  \end{frame}
}
\newcommand{\clang}[2] {
  \ifthenelse{\equal{\lang}{pt}}{#1}{#2}
}
\newcommand{\newgraphics}[2][4] {
\ifthenelse{\equal{\lang}{pt}}{\includegraphics[width=#1cm]{../images/#2}}{\includegraphics[width=#1cm]{../images/#2-en}}
}

\newcommand{\cmax}[1]{\textcolor{OliveGreen}{#1}}
\newcommand{\cmin}[1]{\textcolor{red}{#1}}

% --------- titlepage ------------- %
\begin{frame}
  \titlepage
\end{frame}
% --------- TOC ------------------- %
\begin{frame}
  \frametitle{\clang{Conteúdo}{Contents}}
  \tableofcontents
\end{frame}
% --------- Introduction ---------- % 
\newsection{intro}{Introdução}{Introduction}
\newsection{solution}{Solução}{Solution}
\newsection{benchmark}{Benchmark}{Benchmark}
\newsection{results}{Resultados}{Results}
\newsection{conclusion}{Conclusão}{Conclusion}

\end{document}
